package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.stylefeng.guns.common.annotion.EmpCode;
import com.stylefeng.guns.common.annotion.Point;
import com.stylefeng.guns.common.annotion.PointType;
import com.stylefeng.guns.common.annotion.Year;
import com.stylefeng.guns.common.constant.PointConstType;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

/**
 * <p>
 * 网络培训积分

 * </p>
 *
 * @author jondai
 * @since 2017-12-28
 */
@PointType(PointConstType.networkTrainPoints)
@TableName("network_train_points")
public class NetworkTrainPoints extends Model<NetworkTrainPoints> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	@TableId(value="id", type= IdType.UUID)
	private String id;
	/**
	 * 年度
	 */
	@TableField("year")
	@Excel(name = "年度",width = 20)
	@Year
	private String year;
    /**
     * 员工编号
     */
	@EmpCode
	@TableField("emp_code")
	@Excel(name = "员工编号",width = 20)
	private String empCode;
	/**
	 * 员工姓名
	 */
	@TableField("emp_name")
	@Excel(name = "员工姓名",width = 20)
	private String empName;
	@TableField("labor_type")
	@Excel(name = "用工类型",width = 20)
	private String laborType;

	@TableField("person_state")
	@Excel(name = "人员状态",width = 20)
	private String personState;

    /**
     * 年度网大积分已废弃字段 jondai 2018年01月31日16:31:42
     */
	@TableField("netbig_integral")
	private Double netbigIntegral;
    /**
     * 年度学分
     */
	@Point
	@TableField("annual_credits")
	@Excel(name = "年度学分",width = 15)
	private Double annualCredits;
    /**
     * 年度学时
     */
	@TableField("annual_period")
	@Excel(name = "年度学时",width = 15)
	private Double annualPeriod;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 积分来源
     */
	@TableField("integral_origin")
	private String integralOrigin;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmpCode() {
		return empCode;
	}

	public void setEmpCode(String empCode) {
		this.empCode = empCode;
	}

	public Double getNetbigIntegral() {
		return netbigIntegral;
	}

	public void setNetbigIntegral(Double netbigIntegral) {
		this.netbigIntegral = netbigIntegral;
	}

	public Double getAnnualCredits() {
		return annualCredits;
	}

	public void setAnnualCredits(Double annualCredits) {
		this.annualCredits = annualCredits;
	}

	public Double getAnnualPeriod() {
		return annualPeriod;
	}

	public void setAnnualPeriod(Double annualPeriod) {
		this.annualPeriod = annualPeriod;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getIntegralOrigin() {
		return integralOrigin;
	}

	public void setIntegralOrigin(String integralOrigin) {
		this.integralOrigin = integralOrigin;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getLaborType() {
		return laborType;
	}

	public void setLaborType(String laborType) {
		this.laborType = laborType;
	}

	public String getPersonState() {
		return personState;
	}

	public void setPersonState(String personState) {
		this.personState = personState;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "NetworkTrainPoints{" +
			"id=" + id +
			", empCode=" + empCode +
			", netbigIntegral=" + netbigIntegral +
			", annualCredits=" + annualCredits +
			", annualPeriod=" + annualPeriod +
			", createDate=" + createDate +
			", integralOrigin=" + integralOrigin +
			"}";
	}
}
